package com.speoki.springboot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan(basePackages="com.speoki.springboot.mapper")
@EnableTransactionManagement
public class StudentScCourseApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {

        SpringApplication.run(StudentScCourseApplication.class, args);
     /*   StudentService studentService = new StudentServiceImpl();
        Student student = studentService.queryStudentById(95001);
        System.out.println(student);*/
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(StudentScCourseApplication.class);
    }
}
